<?php

//const PLAT_SERVER_ID = 1;
//const PLATFORM = "release";

include_once('settings.php');

const SUCCESS = 0;           //成功
const IP_DENIED = -1;       //ip无权限访问
const KEY_VERIFY_FAILED = -2; //密钥验证失败
const REQUEST_TIMEOUT = -3;  //请求超时


const IS_RECORD_PAY = 1;
const RECORD_BUT_NO_PAY = 2;

const STATUS_PENDING = 0;
const STATUS_SHIPPING = 1;
const STATUS_SUCCESS = 2;
const STATUS_SIGN_FAILED = 3;
const STATUS_ORDER_NOT_EXIST = 4;
const STATUS_ORDER_SHIPPED = 5;
const STATUS_AMOUNT_MISMATCH = 6;
const STATUS_FUNCTION_NOT_EXIST = 7;
const STATUS_SERVER_CONNECT_FAILED = 8;
const STATUS_SERVER_SIGN_FAILED = 9;
const STATUS_PLAYER_NOT_EXIST = 10;
const STATUS_ORDER_DUPLICATE = 11;
const STATUS_DELIVERY_FAILED = 12;
const STATUS_RPC_FAILED = 13;
const STATUS_RECHARGE_TYPE_ERROR = 14;
const STATUS_RECHARGE_SUBTYPE_ERROR = 15;
const STATUS_CUSTOM_ITEM_INVALID = 16;


//background方法
const BACKGROUND_CHAT_BAN = 1; //                %% 禁言
const BACKGROUND_LOGIN_BAN = 2; //           %% 禁号
const BACKGROUND_ASSETS = 3; //               %% 增减资产
const BACKGROUND_DELITEM = 4; //               %% 删物品
const BACKGROUND_MAIL = 5; //                 %% 邮件
const BACKGROUND_RECHARGE = 6; //             %% 充值
const BACKGROUND_ALOGIN_BAN = 7; //         %% 根据账号封号
const BACKGROUND_ACHAT_BAN = 8; //               %% 根据账号封号
const BACKGROUND_CROSS_NODES_CHANGE = 10; //     %% 跨服节点切换
const BACKGROUND_NOTICE = 11; //                 %% 后台公告
const BACKGROUND_IP_BAN = 12; //                 %% 封ip
const BACKGROUND_ADDITEM = 15; //                %% 加物品
const BACKGROUP_DEL_ROLE = 16; //                %% 删除/恢复角色
const BACKGROUP_REFRESH_NEW_SERVER = 17; //      %% 刷新最新服数据
const BACKGROUND_GET_ROLE_INFO = 18; //          %% 查询角色指定的信息
const BACKGROUND_FRIEND_TASK = 19; //            %% 好友任务统计
const BACKGROUP_CLEAN_GUILD = 23;
const BACKGROUP_ALTER_GUILD_NAME = 24;
const BACKGROUP_ALTER_GUILD_CONTENT = 25; 

const BACKGROUP_REDUCE_ASSETS =26 ; //后台删减资产
const BACKGROUND_QUERY_PLAYER =27;           //%% 查询玩家角色
const BACKGROUND_QUERY_PLAYER_HERO_LIST =28;  //查询玩家修士信息
const BACKGROUND_ALL_CHAT_BAN =29 ; //全服禁言
const BACKGROUND_ROLE_BAG =30;
const BACKGROUND_RELEASE_IP =31; //设置稳定服ip

//background 返回结果
const BACKGROUND_SUCCESS = 0; //成功
const BACKGROUND_PARAM_ERROR = 1; //参数结构错误
const BACKGROUND_SIGN_ERROR = 6; //sign错误


//mail发送状态

const SEND_MAIL_SUCCESS = 2;
const SEND_MAIL_PARAM_ERROR = 1;